home *** CD-ROM | disk | FTP | other *** search
- %! HWGPOST >= V22.18 initialisation file
- %
- % $Id: init.ps,v 2.11 1994/07/08 21:26:15 heinz Exp $
- %
- % HWGPOST ©1993,1994 Heinz Wrobel, for Joan Thuesen
- %
- % Based loosely on Post V1.7 (C) Adrian Aylward 1989, 1991
- %
- % You may freely copy, use, and modify this file
- %
- % This file should be run before most programs
-
- % A dummy status dictionary
- false setglobal
- /statusdict <<
- /waittimeout 0
- /checkpassword { 0 eq } bind
- /product product
- /processcolors deviceinfo /Colors get
- >> def
- true setglobal
-
- % A dummy server dictionary
-
- /serverdict << /exitserver { pop } bind >> def
-
- % We need global VM for modifications to systemdict!
- true setglobal
- systemdict begin
-
- % Ignore CTRL/D, CTRL/L, and simple CRs
-
- <04> cvn {} def
- <0c> cvn {} def
- <0d> cvn {} def
-
- % Dummies for ugly PostScript code
-
- /setjobtimeout { pop } bind def
- /letter {} def
-
- % Ok, lets return to the previous vm mode and make the systemdict readonly
- end
- systemdict readonly pop
- false setglobal
-
- %
- % We try to register all our resources on disk now. This speeds up
- % access.
- %
- % We look for the file "HWGPOSTResources" and execute it if it is available
- % If not, we check for it as "POST:HWGPOSTResources", too.
- % If this fails again, we can't do anything reasonable about it, so we don't.
- %
- (HWGPOSTResources) dup status
- {
- pop pop pop pop true
- }
- {
- pop
- (%POST%HWGPOSTResources) dup status
- {
- pop pop pop pop true
- }
- {
- pop false
- }
- ifelse
- }
- ifelse
- {
- currentglobal exch true setglobal
- run
- setglobal
- }
- if
-
- %
- % To keep compatibility with the old post.library I need to have
- % the renderband commands available. I don't want them to "clutter"
- % the PS name space by default, so they are built in as "@currentband"
- % and "@setband" and need to be redefined for "old" SW.
- %
- % I encourage any user of HWGPOST to use the "@" names for these operators
- % as I might drop support for the old names in init.ps in the future.
- %
- /currentband /@currentband load def
- /setband /@setband load def
-
- % Ok, we now go to local VM for user stuff
- false setglobal
-
- % EOT
-